// 查询用户个人信息
export const getUserProfile = (params) => {
  return new Promise((resolve, reject) => {
    const result = {
      code: 200,
      msg: 'ok',
      permissions: ['*:*:*'],
      roles: ['admin'],
      user: {
        id: 1,
        account: "admin",
        avatar: "https://foruda.gitee.com/avatar/1677045054647217247/5292253_rocyuan666_1634692226.png",
        name: "管理员"
      },
    }
    resolve(result)
  })
}

// 修改用户个人信息
export const updateUserProfile = (params) => {
  return new Promise((resolve, reject) => {
    const result = {
      code: 200,
      msg: 'ok',
      data: {}
    }
    resolve(result)
  })
}

// 修改用户密码
export const updateUserPwd = (params) => {
  return new Promise((resolve, reject) => {
    const result = {
      code: 200,
      msg: 'ok',
      data: {}
    }
    resolve(result)
  })
}